$(function (){
    $.get("/taskManagerInfoList", function(req) {
        var table_html = "";
        for (let i = 0; i < req.length; i++) {
            var data = req[i];
            table_html += "<tr>  " +
                "              <td>" + data.name + "</td>  " +
                "              <td>" + data.hostIP + "</td>  " +
                "              <td>" + data.restartCount + "</td>  " +
                "              <td>" + data.phase + "</td>  " +
                "          </tr>"
        }
        $("#table_body").html(table_html);
    });
});